//
//  ReplyModel.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/09/30
//  Copyright (c) dllo. All rights reserved.
//

#import "ReplyModel.h"
#import "ReplyItem.h"

@implementation ReplyModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"Items"]) {
        NSMutableArray<ReplyItem *> *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ReplyItem *item = [ReplyItem modelWithDic:dic];
            [arr addObject:item];
        }
        _Items = arr;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"Items" : [ReplyItem class]};
}

@end
